#include<stdio.h>
#include<math.h>
int main()
{
	int i,n,h,w;
	double b=0;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{
		scanf("%d %d",&h,&w);
		b=(h-100)*0.9*2;
		if(fabs(w-b)<(b*0.1))
			printf("You are wan mei!\n");
		else if(w>b)
			printf("You are tai pang le!\n");
		else
			printf("You are tai shou le!\n");
	}	
	return 0;
}
